package com.recruit.wechat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.recruit.wechat.bean.AdminUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 肖守凯
 * @since 2019-09-03
 */
public interface AdminUserMapper extends BaseMapper<AdminUser> {



    /** 分页查询User
     * @param map.page  页码
     * @param map.limit  查几条
     * @param map.user  前端传进的参数
     * @return 返回统一分页信息
     */
    List<AdminUser> selectMyPage(@Param("map") Map map);
    Integer countMyPage(@Param("map") Map map);

    //登陆
    AdminUser userLogin(@Param("userName") String userName, @Param("passWord") String passWord);
    AdminUser findUserByUserId(@Param("id") Integer id);

}
